<div class="step-bar">
    <div ng-repeat="stepItem in stepData.list track by $index" class="steps pull-left"
         ng-if="$index !== (stepData.list.length - 1)" ng-class="{'cur': $index <= stepData.curStep}"
         ng-style="stepWidth">
        <div class="step-no">
            <i ng-if="$index < stepData.curStep" class="yb-icon ico-check"></i>
            <span ng-if="$index >= stepData.curStep">
                {{$index + 1}}
            </span>
        </div>
        <div class="step-name">
            {{stepItem.name}}
        </div>
        <div class="step-line">
            <div></div>
        </div>
    </div>
    <div class="last-step" ng-class="{'cur': (stepData.list.length - 1) === stepData.curStep}">
        <div class="step-no">{{stepData.list.length}}</div>
        <div class="step-name">
            {{stepData.list[stepData.list.length - 1].name}}
        </div>
    </div>
</div>